package com.example.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.mall.domain.UserAddresses;
import com.example.mall.dto.UserAddressesDto;
import com.example.mall.query.PageDTO;
import com.example.mall.query.UserAddressesQuery;

import java.util.List;


/**
 * <p>
 * 用户地址表 服务类
 * </p>
 *
 * @author whale
 * @since 2025-05-09
 */
public interface IUserAddressesService extends IService<UserAddresses> {

    //分页查询用户地址表信息
    PageDTO<UserAddressesDto> queryPage(UserAddressesQuery userAddressesQuery);

    //根据id查询用户地址表信息
    UserAddresses queryUserAddressesById(Long addressId);

    //查询全部用户地址表信息
    List<UserAddresses> queryUserAddressesList();

    //新增用户地址表
    void insert(UserAddressesDto userAddressesDto);

    //修改用户地址表信息
    void update(UserAddressesDto userAddressesDto);

    //删除用户地址表信息
    void delete(Long addressId);

    //批量删除用户地址表信息
    void deleteBatch(List<Long> addressIds);
}
